package cn.maxhou;

import cn.maxhou.entity.SysUser;
import cn.maxhou.service.SysUserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class apps {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("springmvc-servlet.xml");
        SysUserService sysUserService =(SysUserService) context.getBean("sysUserService");
        SysUser admin = sysUserService.login("admin", "123456");
        System.out.println(admin);
    }
}
